<%@ page contentType="text/html;charset=utf-8" language="java" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <title>webrx</title>
</head>
<body>
<%=2*3%>
<br>
\${pageContext.request} = ${pageContext.request} |取得请求对象<br>
\${pageContext.session} = ${pageContext.session} |取得session对象<br>
\${pageContext.request.queryString} = ${pageContext.request.queryString} |取得请求的参数字符串<br>
\${pageContext.request.requestURL} = ${pageContext.request.requestURL} |取得请求的URL的服务器路径，但不包括请求之参数字符串<br>
\${pageContext.request.contextPath} = ${pageContext.request.contextPath} |服务的web application的名称<br>
\${pageContext.request.method} = ${pageContext.request.method} |取得HTTP的方法(GET、POST)<br>
\${pageContext.request.protocol} = ${pageContext.request.protocol} |取得使用的协议(HTTP/1.1、HTTP/1.0)<br>
\${pageContext.request.remoteUser} = ${pageContext.request.remoteUser} |取得用户名称<br>
\${pageContext.session['new']} = ${pageContext.session['new']} |判断session是否为新的，所谓新的session，表示刚由server产生而client尚未使用<br>
\${pageContext.session.id} = ${pageContext.session.id} |取得session的ID<br>
\${header["User-Agent"]} = ${header["User-Agent"]}|用户浏览器的版本<br>
\${header["Host"]} = ${header["Host"]}|IP<br/>
\${pageContext.request.remoteAddr} = ${pageContext.request.remoteAddr} |取得用户的IP地址<br>
\${pageContext.request.localAddr} = ${pageContext.request.localAddr} |取得服务器IP地址<br>
\${pageContext.servletContext.serverInfo} = ${pageContext.servletContext.serverInfo}|取得主机端的服务信息<br>
\${pageContext.request.serverPort} = ${pageContext.request.serverPort}|端口信息<br>
\${pageContext.request.serverName} = ${pageContext.request.serverName}|服务器名称<br>
\${pageContext.request.remoteHost} = ${pageContext.request.remoteHost}|客户机名称<br>
</body>
</html>
